package com.itheima.chapter203.mapper;

import com.itheima.chapter203.domain.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {
    /** 根据id查找Article */
    Article selectArticleById(Integer id);
    /** 根据条件查找Article列表 */
    List<Article> selectArticleList(Article article);
    /** 插入Article */
    int insertArticle(Article article);
    /** 修改Article */
    int updateArticle(Article article);
    /** 根据id删除Article */
    int deleteArticle(Integer id);
}
